package ai.esc.speedy.admin.user.infrastructure.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author Rubin
 * @version v1 2020/2/27 16:36
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}